package com.honey.mybatis.generator.condition.field;

import com.honey.compilation.java.Field;
import com.honey.core.types.FullyQualifiedJavaType;
import com.honey.mybatis.generator.AbstractField;
import com.honey.mybatis.generator.condition.ConditionConstant;

public class GeneratedCriteriaField extends AbstractField {
	
	private static final String FIELD_NAME=ConditionConstant.GENERATED_CRITERIA ;
	
	private static final FullyQualifiedJavaType TYPE = new FullyQualifiedJavaType("T");
	
	/*
	 * (non-Javadoc)
	 * @see com.honey.mybatis.generator.AbstractField#getFieldName()
	 */
	@Override
	protected String getFieldName() {
		return FIELD_NAME;
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.honey.mybatis.generator.AbstractField#getType()
	 */
	@Override
	protected FullyQualifiedJavaType getType() {
		return TYPE;
	}
	
	public static void main(String []args){
		GeneratedCriteriaField f = new GeneratedCriteriaField();
		Field field =  f.createField() ;
		System.out.println(field.compiledContent(1));
	}
}
